package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author ccl
 * @since 2024-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysMenu对象", description="菜单表")
public class SysMenu extends Model<SysMenu> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "菜单编号")
    private String menuCode;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "菜单父编号")
    private String parentCode;

    @ApiModelProperty(value = "菜单父名称")
    private String parentName;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "url地址")
    private String url;

    @ApiModelProperty(value = "当前菜单的所有父菜单编号")
    private String menuPath;

    @ApiModelProperty(value = "菜单排序号")
    private Integer sort;

    @ApiModelProperty(value = "菜单层级")
    private Integer levels;

    @ApiModelProperty(value = "是否是菜单(字典)")
    private String menuFlag;

    @ApiModelProperty(value = "备注")
    private String description;

    @ApiModelProperty(value = "菜单状态(字典)")
    private Integer prOnoff;

    @ApiModelProperty(value = "是否打开新页面的标识(字典)")
    private String newPageFlag;

    @ApiModelProperty(value = "系统编码")
    private String systemCode;

    @ApiModelProperty(value = "系统名称")
    private String systemName;

    @ApiModelProperty(value = "是否打开(字典)")
    private String openFlag;

    @ApiModelProperty(value = "操作人id")
    private String operatorId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "修改人id")
    private String updateId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;

    @ApiModelProperty(value = "启停日期")
    private Date prOnoffTime;

    @ApiModelProperty(value = "是否外联")
    private String sfOutside;

    @ApiModelProperty(value = "显示状态")
    private String showStatus;

    @ApiModelProperty(value = "是否缓存")
    private String sfCache;

    @ApiModelProperty(value = "菜单路由")
    private String menuRoute;

    @ApiModelProperty(value = "路由名称")
    private String routeName;

    @ApiModelProperty(value = "路由参数")
    private String routeParameter;

    @ApiModelProperty(value = "组件路径")
    private String componentPath;

    @ApiModelProperty(value = "权限字符")
    private String permissionCharacter;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
